package com.yunhe.device.model.device;

import com.yunhe.common.annotation.ItemAndName;
import com.yunhe.common.annotation.NameTitle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName EquipmentBo
 * @Description TODO
 * @Author HeTao
 * @Date 2021/7/16 14:47
 * @Version 1.0
 **/
@ApiModel(value = "EquipmentBo", description = "设备新增编辑对象")
@Data
public class EquipmentBo {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("设备类型id")
    private Long equipTypeId;

    @ApiModelProperty("设备状态")
    private String status;

    @ApiModelProperty("设备状态Title")
    @NameTitle(nameCode = "equipStatus",nameType = "ITEM")
    private String statusTitle;

    @ApiModelProperty("设备类型图片")
    private String equipTypePhoto;

    @ApiModelProperty("设备类型编码")
    private String equipTypeName;

    @ApiModelProperty("设备类型名称")
    private String equipTypeTitle;

    @ApiModelProperty("设备名称Id")
    private Long equipNameId;

    @ApiModelProperty("设备名称")
    private String equipName;

    @ApiModelProperty("归属园区Id")
    private Long ownedParkId;

    @ApiModelProperty("归属园区")
    private Long ownedPark;

    @ApiModelProperty("归属园区Name")
    @NameTitle(nameCode = "ownedPark",nameType = "RealStation")
    private String ownedParkName;

    @ApiModelProperty("设备位置Id")
    private Long equipLocationId;

    @ApiModelProperty("设备位置")
    private String equipLocation;

    @ApiModelProperty("设备位置")
    @ItemAndName(nameCode = "equipLocation",nameValue = "equipLocation",nameType = "ITEM-OFIICE")
    private String equipLocationTitle;

    @ApiModelProperty("设备Sn码")
    private Long equipSNId;

    @ApiModelProperty("设备Sn码")
    private String equipSN;

    @ApiModelProperty("设备属性值")
    private List<EquipAttrValueVo> equipAttrValueVos;

    @ApiModelProperty("设备点号类型值")
    private List<EquipAnlogTypeVo> equipAnlogTypeVos;

}
